﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B303Langf.Parser.AST
{
   public class FunctionCallPrimaryExpression : IdentifierPrimaryExpression
   {
      public FunctionCallPrimaryExpression( Identifier identifier, Expressions expressions )
         : base( identifier )
      {
         Expressions = expressions;
      }

      public Expressions Expressions
      {
         get;
         private set;
      }

      [TraverseIgnore]
      public FunctionDeclaration Declaration
      {
         get;
         set;
      }

      public override object Visit( IVisitor v, object obj )
      {
         return v.VisitFunctionCallPrimaryExpression( this, obj );
      }
   }
}
